package standard;

import java.io.Serializable;

public class Standard implements Serializable{
	private String mode;
	private String name;
	private byte[] dataRecord;
	private long start = 0;
	private String answer = "";
	
	public Standard(String mode,String name, byte[] dataRecord)
	{
		this.mode=mode;
		this.name=name;
		this.dataRecord=dataRecord;
	}
	
	public Standard(String mode,String name)
	{
		this.mode=mode;
		this.name=name;
		this.dataRecord=null;
	}
	
	public Standard()
	{
		answer = "Not Exist Yet";
		name = "";
		mode = "";
	}
	
	public void setAnswer(String answer)
	{
		this.answer = answer;
	}
	
	public String getAnswer()
	{
		return this.answer;
	}
	
	public void setTime()
	{
		this.start = System.currentTimeMillis();
	}
	
	public long getTime()
	{
		return this.start;
	}
	public String getMode()
	{
		return this.mode;
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public byte[] getData()
	{
		return this.dataRecord;
	}
	
}
